<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<%@ include file="/common/meta.jsp"%>
		<link rel="stylesheet" type="text/css" href="${ctx}/resource/css/crud.css" />
		<script src="${ctx}/resource/js/jquery-1.4.2.min.js" type="text/javascript"></script>
		<script src="${ctx}/resource/js/CRUDSupport.js" type="text/javascript"></script>
	</head>
	<body>
		<form id="crudForm" action="role.action" method="get">
			<table>
				<tr>
					<td><div class="title">角色管理</div></td>
					<td><s:actionmessage theme="custom" cssClass="message" /></td>
				</tr>
			</table>
		
			<div class="operate">
				<a href="${ctx}/administrate/role!input.action"><img src="${ctx}/resource/images/add.gif" /> </a>
			</div>
		
			<div class="search"">
				关键字：
				<input type="text" name="filter_LIKES_name" value="${param['filter_LIKES_name']}" style="width: 150px" />
				<input type="button" value="搜索" onclick="search();" />
			</div>
			
			<table width="100%" class="dataTable">
				<tr class="dataTableHead">
					<td width='40' align="center">序号</td>
					<td width='30' align="center">
						<input type='checkbox' id="selectAllCheckbox" onclick="selectAll(this)" />
					</td>
					<td>角色</td>
					<td colspan="2" align="center" width='60'>操作</td>
				</tr>

				<s:iterator value="roleList" status="status">
					<tr onclick="clickTr(this, event);">
						<td align="center"><b>${1 + status.index}</b></td>
						<td align="center"><input type='checkbox' name="${id}" id="checkbox${status.index+1}" /></td>
						<td>${name}</td>
						<td>
							<a href="${ctx }/administrate/role!input.action?id=${id}"><img src="${ctx}/resource/images/edit.gif" title="编辑" /> </a>
						</td>
						<td>
							<a href="#"><img src="${ctx}/resource/images/delete.gif" title="删除" /></a>
						</td>
					</tr>
				</s:iterator>

			</table>
		</form>

	</body>
</html>